package edu.sysu.cshare.gui;

import java.awt.BorderLayout;

import javax.swing.JPanel;
import javax.swing.JTabbedPane;

import edu.sysu.cshare.control.ClassManager;
import edu.sysu.cshare.control.UserManager;
import java.awt.Color;

public class Pnl_Setting extends JPanel {
	private UserManager userManager;
	private ClassManager classManager;
	
	/**
	 * Create the panel.
	 */
	public Pnl_Setting(UserManager userManager, ClassManager classManager) {
		
		this.userManager = userManager;
		this.classManager = classManager;
		setLayout(new BorderLayout(0, 0));
		JTabbedPane tabbedPane = new JTabbedPane(JTabbedPane.TOP);
		Pnl_Setting_Me pnl_Setting_Me = new Pnl_Setting_Me(userManager,
				classManager);
		pnl_Setting_Me.setBackground(new Color(224, 255, 255));
		tabbedPane.addTab("个人中心", null, pnl_Setting_Me, null);
		Pnl_Setting_Class pnl_Setting_Class = new Pnl_Setting_Class();
		pnl_Setting_Class.setBackground(new Color(224, 255, 255));
		tabbedPane.addTab("班级管理", null, pnl_Setting_Class, null);
		add(tabbedPane, BorderLayout.CENTER);

	}

}
